import request from '@/utils/request'

/*
* 体重费用
*  */

export const retailWeightCostListQuery = (params) => {
  return request({
    url: `/retailWeightCost/listQuery/listQuery?pageNum=${params.pageNum ? params.pageNum : 1}&pageSize=${params.pageSize ? params.pageSize : 10}&id=${params.id ? params.id : ''}&name=${params.name ? params.name : ''}`,
    method: 'get'
  })
}

export const retailWeightCostList = (params) => {
  return request({
    url: `/retailWeightCost/list?id=${params.id ? param.id : ''}&name=${params.name ? params.name : ''}`,
    method: 'get'
  })
}

export const retailWeightCostGetEntityById = (id) => {
  return request({
    url: `/retailWeightCost/getEntityById/${id}`,
    method: 'get'
  })
}
export const retailWeightCostAdd = (data) => {
  return request({
    url: '/retailWeightCost/add',
    method: 'post',
    data
  })
}

export const retailWeightCostUpdate = (data) => {
  return request({
    url: '/retailWeightCost/update',
    method: 'put',
    data
  })
}

export const retailWeightCostRemove = (id) => {
  return request({
    url: `/retailWeightCost/delete?id=${id}`,
    method: 'delete'
  })
}
